package com.mapper;


import com.po.Course;
import com.vo.CourseQuery;
import com.vo.TrainerCourseQuery;

import java.util.List;

public interface CourseMapper {
    public void insertCourse(Course course);
    public int count();
    public int countEvent();

    public List<Course> selectCourseByPage(int page);
    public Course selectById(long id);
    public void delById(long id);
    public List<Course> selectAll(CourseQuery query);
    public void updateById(Course course);
    public List<Course> selectEventByPage(int page);

    public List<Course> selectCourseByTrainer(TrainerCourseQuery trainerCourseQuery);
    public List<Course> selectEventByTrainer(TrainerCourseQuery trainerCourseQuery);


}